package com.qst.crop.demo.mapper;

import com.qst.crop.demo.entity.Knowledge;
import com.qst.crop.demo.entity.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface KnowMapper {

    int add(Knowledge knowledge);

    List<Knowledge> select(String searchWord);

    List<Knowledge> selectAll();

    int update(Knowledge knowledge);

    int delete(Knowledge knowledge);

    Knowledge getKnowById(Long knowledgeId);
}
